<h2>Search Subscribers</h2>
<hr/>
<p>Enter subscriber information using the drop down list and field provided:</p>
<center>

<?php echo form_open('staff/subscriber_management/searchSubscribers'); ?>
<tr>
	<th align="right">Search by:</th>
	<td><?php echo form_dropdown('search_by', array('last_name'=>'Last Name', 'first_name'=>'First Name', 'subscriber_id'=>'Subscriber Number') , 'Last Name'); ?></td>
	<td><?php echo form_input('term', ''); ?></td>
	<td><?php echo form_submit('search', 'Submit'); ?></td>
</tr>
<?php echo form_close(); ?>

<p><?php echo $result_count ?> results returned.</p>

<table>
<tr>
	<th>Subscriber Number</th>
	<th>First Name</th>
	<th>Last Name</th>
	<th class="tablehead">Actions</th>
</tr>
<?php
foreach ($subscribers->result() as $subscriber)
{
	echo '<tr>';
	
	// Details
	echo '<td>' . $subscriber->subscriber_id . '</td>';
	echo '<td ><span style="zoom:1;">' . $subscriber->first_name . '</span></td>';
	echo '<td><span style="zoom:1;">'. $subscriber->last_name .'</span> </td>';
	
	// Actions
	echo '<td>';
	echo anchor('staff/subscriber_management/viewSubscriber/' . $subscriber->subscriber_id, 'View');
	echo '/' . anchor('staff/subscriber_management/modifySubscriber/' . $subscriber->subscriber_id, 'Modify');
	//echo '/' . anchor('staff/subscriber_management/deleteSubscriber/' . $subscriber->subscriber_id, 'Delete', array('onclick'=>"return confirm('Are you sure you wish to remove this subscriber?');"));
	echo '</br></td>';
	echo '</tr>';
}
?>
</table>

<?php echo $this->pagination->create_links(); ?>

</center>
